﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HelfenHelfen.Logic.Interfaces;
using HelfenHelfen.DataAccess.Factories;
using HelfenHelfen.DataAccess.Interfaces;

namespace HelfenHelfen.Logic
{
    public class BonusItemLogic : IBonusItemLogic
    {


        #region IBonusItemLogic Members

        public DataAccess.Entities.BonusItem Insert(DataAccess.Entities.BonusItem newBonusItem)
        {
            IBonusItemDataAccess da = DataAccessFactory.CreateBonusItemDataAccess();
            return da.Insert(newBonusItem);
        }

        public void Delete(Guid bonusItemId)
        {
            IBonusItemDataAccess da = DataAccessFactory.CreateBonusItemDataAccess();
            da.Delete(bonusItemId);
        }

        public DataAccess.Entities.BonusItem Update(DataAccess.Entities.BonusItem updateBonusItem)
        {
            IBonusItemDataAccess da = DataAccessFactory.CreateBonusItemDataAccess();
            return da.Update(updateBonusItem);
        }

        public DataAccess.Entities.BonusItem Get(Guid bonusItemId)
        {
            IBonusItemDataAccess da = DataAccessFactory.CreateBonusItemDataAccess();
            return da.Get(bonusItemId);

        }

        public IList<DataAccess.Entities.BonusItem> GetAll()
        {
            IBonusItemDataAccess da = DataAccessFactory.CreateBonusItemDataAccess();
            return da.GetAll();
        }



        #endregion
    }
}
